package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.PayingDao;
import com.home.qh.model.Paying;
import com.home.qh.service.PayingManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("payingManager")
public class PayingManagerImpl extends GenericManagerImpl<Paying, Long> implements PayingManager {
	PayingDao payingDao;

    @Autowired
    public PayingManagerImpl(PayingDao payingDao) {
        super(payingDao);
        this.payingDao = payingDao;
    }

	public List<Paying> getPayingByCodeAndName(String payingCode,
			String payingName) {
		return payingDao.getPayingByCodeAndName(payingCode, payingName);
	}

	public List<Paying> getPayingByPaying(Paying paying, String sort, boolean desc, int startResult, int maxResults) {
		return payingDao.getPayingByPaying(paying, sort, desc, startResult, maxResults);
	}

}